<?php
class Zend_View_Helper_ShowDetail {
    public function showDetail($view) {

    	$page = $view->Pages;
    	$str='';
        $str .= '<table width="960">';
		$str .= '<tr>';
    	$str .= '<th width="200">Tên trang</th>';
    	$str .= '<th width="200">Ngày tạo</th>';
    	$str .= '<th width="200">Slug</th>';
		$str .= '</tr>';

        
        foreach ($page as $page) {
        	$str .= '<tr>'; 	
            $str .='<td height="17" width="200">'.$page->name.'</td>';
            $str .='<td height="17" width="200">'.$page->slug.'</td>';
            $str .='<td height="17" width="200">'.$page->created_date.'</td>';
            $str .='</tr>';
        }
        $str .= '</table>';
        return $str; 

    }
}